
#import <Foundation/Foundation.h>

#pragma mark - BYResponse

@interface BYResponse : NSObject {
@protected
    BOOL _isError;
    BOOL _isCache;
    NSString *_errorMessage;
}

@property (nonatomic, readonly) BOOL isError;
@property (nonatomic, readonly) NSString *errorMessage;
@property (nonatomic, assign) BOOL isCache;

- (id)initWithResponseDictionary:(NSDictionary *)responseDictionary;
- (id)initWithErrorMessage:(NSString *)errorMessage;

@end